#@adminLayout()
#define main()
###页面显示的按钮 C:增加按钮,R:查询按钮/清空查询按钮,U:修改按钮,D:删除按钮,I:Excel导入按钮,E:Excel导出按钮,O:tr中操作列
#set(map={C:1,R:1,U:1,D:1,I:0,E:0,O:1},
aTh = [   "企业",  "名称",  "经度",   "纬度" ],
aTd = [   "eId",  "name",  "longitude",   "latitude" ])
<div class="card">
    #@cardIndex("区域信息管理","ciis/region",map,aTh,aTd)
</div>
#end

###条件模糊查询
#define cardQuery()
        <div class="col-sm-4">
            <div class="form-group">
                <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>企业</lable>
                <input type="text" name="eId" value="#(model.eId??)"
                       class="form-control" placeholder="请输入企业">
                <i class="form-group__bar"></i>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>名称</lable>
                <input type="text" name="name" value="#(model.name??)"
                       class="form-control" placeholder="请输入名称">
                <i class="form-group__bar"></i>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>经度</lable>
                <input type="text" name="longitude" value="#(model.longitude??)"
                       class="form-control" placeholder="请输入经度">
                <i class="form-group__bar"></i>
            </div>
        </div>
        <div class="col-sm-4">
            <div class="form-group">
                <lable><i class="zmdi zmdi-label-alt zmdi-hc-fw"></i>纬度</lable>
                <input type="text" name="latitude" value="#(model.latitude??)"
                       class="form-control" placeholder="请输入纬度">
                <i class="form-group__bar"></i>
            </div>
        </div>
#end

###自定义表格数据内容,如果使用目前方式，导出功能的数据需要自定义
#define cardIndexTbody()
    <!--<td>#(x.name)</td>-->
#end

###表格上方自定义按钮
#define cardBtn()
#end

#define cardIndexBtn()
<div class="btn-group" dropdown>
    <button type="button" class="btn btn-sm btn-secondary">更多</button>
    <button type="button" class="btn btn-sm btn-secondary dropdown-toggle-split" data-toggle="dropdown">
        <span class="caret"></span>
    </button>
    <ul class="dropdown-menu">
        #permission("/admin/ciis/region/config")
        <li><a data-pjax class="dropdown-item" href="/admin/ciis/region/config?id=#(x.id)&p=1&s=10"><i class="zmdi zmdi-eye zmdi-hc-fw"></i>配置设备信息</a></li>
        #end
    </ul>
</div>
#end

